/*
文本框过滤器
 By: Luo
 */
(function(root, factory) {
	if(typeof define === 'function' && define.amd) {
		// AMD. Register as an anonymous module.
		define(['exports', 'vue'], factory);
	} else if(typeof exports === 'object' && typeof exports.nodeName !== 'string') {
		// CommonJS
		factory(exports, require('vue'));
	} else {
		// Browser globals
		factory(({}), root.Vue);
	}
}(this, function(exports, Vue) {
	Vue.numberLetters = {
		
		install: function(Vue, options) {
			
			var definition = {
				read(val){
					
				},
				write(val,oldVal){
					var str = val.replace(/[^a-zA-Z0-9]/g, '');
					return str;
				}
			}
			
			
			Vue.filter('numberLetters', definition);
		}
	}
}));